﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VipMemberCardPrint.aspx.cs"
    Inherits="GH.Web.VipManage.VipMemberCardPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>会员登记卡片打印</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #tabCard th
        {
            background-color: #B2DBF7;
            height: 24px;
        }
        #tabCard td
        {
            background-color: #FFFFFF;
            height: 24px;
            text-align: left;
        }
    </style>

    <script language="javascript">
         function printpreview() {// 打印页面预览
             dPrint.style.display = 'none';
             //tabCard.border = "1";
             wb.ExecWB(7, 1);
             //window.print();  
             dPrint.style.display = 'block';
             //tabCard.border = "0";
        }
    </script>

</head>
<body>
    <center>
        <table width="width: 600px" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <div id='dPrint' style="text-align: right">
                        <img alt="" src="../images/button/btnPrint.gif" onclick="printpreview();" />&nbsp;&nbsp;
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table id="tabCard" style="width: 600px; background-color: Silver" cellpadding="0px"
                        cellspacing="0px" border="1">
                        <tr>
                            <td style="height: 30px; font-size: larger;" colspan="4">
                                <p style="font-size: x-large; font-weight: bold; font-style: normal; text-align: center;">
                                    员工卡片</p>
                            </td>
                        </tr>
                        <tr>
                            <th style="width: 20%">
                                姓名
                            </th>
                            <td align="left" style="width: 30%">
                                <%=mdtResult.Rows[0]["姓名"].ToString()%>&nbsp;
                            </td>
                            <th style="width: 20%">
                                性别
                            </th>
                            <td style="width: 30%">
                                <%=mdtResult.Rows[0]["性别"].ToString()=="0" ? "男":"女"%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                单位
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["单位名称"].ToString()%>&nbsp;
                            </td>
                            <th>
                                部门
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["部门名称"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                班组
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["班组名称"].ToString()%>&nbsp;
                            </td>
                            <th>
                                身份证号码
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["身份证号"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                是否会员
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["会员区分"].ToString() == "0" ? "否" : "是"%>&nbsp;
                            </td>
                            <th>
                                会员编号
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["会员证号"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                入会时间
                            </th>
                            <td align="left">
                                <%=string.Format("{0:s}", mdtResult.Rows[0]["入会时间"]).Substring(0, 10)%>&nbsp;
                            </td>
                            <th>
                                属性
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["属性名称"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                出生年月日
                            </th>
                            <td>
                                <%=string.Format("{0:s}", mdtResult.Rows[0]["出生年月日"]).Substring(0, 10)%>&nbsp;
                            </td>
                            <th>
                                文化程度
                            </th>
                            <td align="left">
                                 <%=mdtResult.Rows[0]["文化程度名称"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                籍贯
                            </th>
                            <td>
                                <%=mdtResult.Rows[0]["籍贯"].ToString()%>&nbsp;
                            </td>
                            <th>
                                职称
                            </th>
                            <td>
                                <%=mdtResult.Rows[0]["职称名称"].ToString()%>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                收入(元)
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["收入"].ToString()%>&nbsp;
                            </td>
                            <th>
                                联系电话
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["联系电话"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                 参加工作时间
                            </th>
                            <td align="left">
                                 <%=string.Format("{0:s}", mdtResult.Rows[0]["参加工作时间"]).Substring(0,10)%>&nbsp;

                            </td>
                            <th>
                                政治面貌
                            </th>
                            <td align="left">
                                <%=mdtResult.Rows[0]["政治面貌名称"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                家庭地址
                            </th>
                            <td align="left" colspan="3">
                                <%=mdtResult.Rows[0]["家庭住址"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                连续工龄
                            </th>
                            <th>
                                本企业工龄
                            </th>
                            <th colspan="2">
                                从事何种有害人体健康工作
                            </th>
                        </tr>
                        <tr>
                            <td>
                                <%=mdtResult.Rows[0]["连续工龄"].ToString()%>&nbsp;
                            </td>
                            <td>
                                <%=mdtResult.Rows[0]["本企业工龄"].ToString()%>&nbsp;
                            </td>
                            <td colspan="2">
                                <%=mdtResult.Rows[0]["有害人体健康工作"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                调出掉进原因
                            </th>
                            <td align="left" colspan="3">
                                <%=mdtResult.Rows[0]["调进调出原因"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                工作经历
                            </th>
                            <td align="left" colspan="3">
                                <%=mdtResult.Rows[0]["工作经历"].ToString()%>&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <th>
                                备注
                            </th>
                            <td align="left" colspan="3">
                                <%=mdtResult.Rows[0]["备注"].ToString()%>&nbsp;
                            </td>
                        </tr>
                    </table>
                    <object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" id="wb" name="wb" height="0"
                        width="0">
                    </object>
                </td>
            </tr>
        </table>
    </center>
</body>
</html>
